<!-- 借钱页面 -->
<template>
	<view class="outer">
		<view class="title">
			<Search></Search>
			<text>借贷</text>
		</view>
		<view class="banner">
			<view class="head">
				欢太金融官方平台
			</view>
			<view class="money">
				<view class="left">
					<view class="t1">最高可借(元)</view>
					<view class="t2">200,000,00</view>
				</view>
				<view class="right">
					<view class="t1">最低日利率：<text class="t3">0.035%</text></view>
					<view class="t1"> 极速申请：<text class="t3">5mm</text></view>
					<view class="t1">自动审核：<text class="t3">10s</text></view>
				</view>
			</view>
			<view @click="to" class="btn">
				查看借钱额度
			</view>
		</view>
		<!-- j借钱记录 -->
		<view class="moneyhistory">
			<view class="txt1">
				<view class="t1">
					借钱记录
				</view>
				<view class="t2" @click="borr">
					查看
				</view>
			</view>
			<view class="txt2">
				<view class="t1">
					自动还款
				</view>
				<view class="t2">
					未开启
				</view>
			</view>
		</view>

		<view class="showitem">
		</view>
		<view class="tip">
			了解我们
		</view>
		<view class="show">
			<view class="left">
				<view class="t1">借款指南</view>
				<view class="t2">流程简单，快速到账</view>
			</view>
			<view class="right">
				<view class="t1">还款指南</view>
				<view class="t2">还款灵活，轻松省心</view>
			</view>
		</view>
	</view>

</template>

<script>
	import Search from "@/components/Search.vue"
	export default {
		data() {
			return {

			}
		},
		methods: {
		to(){
			uni.navigateTo({
				url:'../Risk/Risk'
			})
		},
		borr(){
			uni.navigateTo({
				url:'../Borrow/Record'
			})
		}
		},
		components: {
			Search
		}
	}
</script>

<style lang="scss" scoped>
	.outer {
		padding: 40rpx;

		.title {
			// width: 750rpx;
			height: 88rpx;
			// margin-top: 100rpx;
			position: relative;

			text {
				z-index: -2;
				font-weight: 700;
				position: absolute;
				top: 6rpx;
				left: 0;
				font-size: 36rpx;
				line-height: 50rpx;
				letter-spacing: 0rpx;
				color: #373c46;
			}


		}


	}

	.banner {
		width: 670rpx;
		height: 344rpx;
		background-image: linear-gradient(313deg,
				#357bf6 0%,
				#5789ff 100%);
		box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(44, 102, 233, 0.2);
		border-radius: 12rpx;
		padding: 28rpx;

		.head {
			width: 320rpx;
			height: 56rpx;
			font-family: PingFang SC;
			font-size: 40rpx;
			line-height: 56rpx;
			letter-spacing: 0rpx;
			color: #ffffff;
		}

		.money {
			margin-top: 28rpx;
			width: 100%;
			height: 110rpx;
			display: flex;
			justify-content: space-between;

			.left {
				width: 300rpx;
				text-align: left;

				.t1 {
					font-family: PingFang SC;
					font-size: 24rpx;
					line-height: 34rpx;
					letter-spacing: 0rpx;
					color: rgba(255, 255, 255, 0.8);
				}

				.t2 {
					margin-top: 8rpx;
					font-family: DIN;
					font-size: 60rpx;
					line-height: 74rpx;
					letter-spacing: 0rpx;
					color: #ffffff;
				}
			}

			.right {
				width: 300rpx;
				text-align: right;

				.t1 {
					margin-top: 4rpx;
					font-family: PingFang SC;
					font-size: 24rpx;
					line-height: 34rpx;
					letter-spacing: 0rpx;
					color: rgba(255, 255, 255, 0.8);
				}

				.t3 {
					font-family: DIN;
					font-size: 24rpx;
					line-height: 30rpx;
					letter-spacing: 0rpx;
					color: #ffffff;
				}
			}
		}

		.btn {
			margin: 30rpx auto;
			width: 338rpx;
			height: 60rpx;
			background-color: #ffffff;
			border-radius: 12rpx;
			font-family: PingFang SC;
			font-size: 32rpx;
			font-weight: normal;
			font-stretch: normal;
			line-height: 44rpx;
			letter-spacing: 0rpx;
			color: #3f61d1;
			text-align: center;
			line-height: 60rpx;
		}


	}

	.moneyhistory {
		margin: 20rpx auto;
		background-color: #ffffff;
		box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(225, 225, 225, 0.2);
		border-radius: 12rpx;

		.txt1 {
			width: 630rpx;
			height: 97rpx;
			align-items: center;
			display: flex;
			justify-content: space-between;

			.t1 {
				width: 112rpx;
				height: 40rpx;
				font-family: PingFang SC;
				font-size: 28rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 40rpx;
				letter-spacing: 0rpx;
				color: #373c46;
			}

			.t2 {
				width: 48rpx;
				height: 34rpx;
				font-family: PingFang SC;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 34rpx;
				letter-spacing: 0rpx;
				color: #cdcdcd;
			}
		}

		.txt2 {
			width: 630rpx;
			height: 97rpx;
			align-items: center;
			display: flex;
			justify-content: space-between;

			.t1 {
				width: 112rpx;
				height: 40rpx;
				font-family: PingFang SC;
				font-size: 28rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 40rpx;
				letter-spacing: 0rpx;
				color: #373c46;
			}

			.t2 {
				width: 72rpx;
				height: 34rpx;
				font-family: PingFang SC;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 34rpx;
				letter-spacing: 0rpx;
				color: #cdcdcd;
			}
		}
	}

	.showitem {
		margin: 28rpx auto;
		width: 670rpx;
		height: 176rpx;
		background: url('/static/image/img_jieqian_banner.png') no-repeat;
	}

	.tip {
		width: 144rpx;
		height: 50rpx;
		font-family: PingFang SC;
		font-size: 36rpx;
		font-weight: normal;
		font-stretch: normal;
		line-height: 50rpx;
		letter-spacing: 0rpx;
		color: #2a2d32;
	}

	.show {
		margin-top: 14rpx;
		width: 670rpx;
		height: 210rpx;
		display: flex;
		justify-content: space-between;

		.left {
			width: 324rpx;
			height: 178rpx;
			background: url('/static/image/img_jieqian_jiekuanzhinan.png') no-repeat;
			padding: 32rpx;

			.t1 {

				width: 128rpx;
				height: 44rpx;
				font-family: PingFang SC;
				font-size: 32rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 44rpx;
				letter-spacing: 0rpx;
				color: #996f42;
			}

			.t2 {
				margin-top: 20rpx;
				width: 216rpx;
				height: 34rpx;
				font-family: PingFang SC;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 34rpx;
				letter-spacing: 0rpx;
				color: rgba(153, 111, 66, 0.7);
			}
		}

		.right {
			padding: 32rpx;
			width: 324rpx;
			height: 178rpx;
			background: url('/static/image/img_jieqian_huankuankuanzhinan.png') no-repeat;

			.t1 {

				width: 128rpx;
				height: 44rpx;
				font-family: PingFang SC;
				font-size: 32rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 44rpx;
				letter-spacing: 0rpx;
				color: #5369b6;
			}

			.t2 {
				margin-top: 20rpx;
				width: 216rpx;
				height: 34rpx;
				font-family: PingFang SC;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 34rpx;
				letter-spacing: 0rpx;
				color: #5369b6;
			}
		}
	}
</style>
